package test.db;

import implementation.server.CDB;

public class StressThread implements Runnable {

	private CDB _CDB;
	private int _threadID;
	
	public StressThread (CDB cdb, int threadID){
		this._CDB= cdb;
		this._threadID= threadID;
	}
	
	public void run() {
		
		
		for(int i=0; i<566; i++)
		{
			int tPostId= this._CDB.addThread(1, "Posted by "+Integer.toString(this._threadID), "YES WE CAN!!!!", this._threadID);
		
			System.out.println("I "+ this._threadID+" added: "+tPostId );
		}
	}

}
